//
//  Box.m
//  OcDay1Homework
//
//  Created by dllo on 16/5/21.
//  Copyright © 2016年 lanou. All rights reserved.
//

#import "Box.h"

@implementation Box
-(void)setName:(NSString *)name{
    _name = name;
}
-(NSString *)name{
    return _name;
}
-(void)setType:(NSString *)type{
    _type = type;
}
-(NSString *)type{
    return _type;
}
-(void)setWeight:(NSInteger)weight{
    _weight = weight;
}
-(NSInteger)weight{
    return _weight;
}
-(void)setPrice:(NSInteger)price{
    _price = price;
}
-(NSInteger)price{
    return _price;
}
-(void)myPrint{
    NSLog(@"%@ %@ %ld %ld",_name,_type,_weight,_price);
}
-(instancetype)initWithName:(NSString *)name withType:(NSString *)type withWeight:(NSInteger)weight withPrice:(NSInteger)price{
    self = [super init];
    if(self){
        _name = name;
        _type = type;
        _weight = weight;
        _price  = price;
    }
    return self;
}
@end
